/**
 * 
 */
package com.baymax.springboot.cli.generator.output;

import java.util.HashMap;
import java.util.Map;

/**
 * @author huxiao
 *
 */
public class Column {

	public static String pure(String constKey) {
		if(constKey == null || "".equals(constKey.trim())) {
			throw new IllegalArgumentException("constKey is null");
		}
		
		int index = constKey.indexOf(".");
		if(index == -1) {
			return constKey;
		}
		return constKey.substring(index + 1);
	}
	
	public final static String NAMESPACE_COMMON = "_common.";
	public final static String ID = "id";
	
	public final static String GMT_CREATED = "gmt_created";
	
	public final static String CREATOR = "creator";
	
	public final static String GMT_MODIFIED = "gmt_modified";
	
	public final static String MODIFIER = "modifier";
	
	public final static String IS_DELETED = "is_deleted";
	
	public final static String VERSION = "version";


	public static class HDE_USER {
	    public final static String NAMESPACE = "hde_user";

		private final static String prefix = NAMESPACE + ".";
			
		
		public final static String YEAR_OF_WORKING = "year_of_working";
		public final static String PREFIX__YEAR_OF_WORKING = prefix + YEAR_OF_WORKING;

		
		public final static String REMARK = "remark";
		public final static String PREFIX__REMARK = prefix + REMARK;

		
		public final static String SALARY = "salary";
		public final static String PREFIX__SALARY = prefix + SALARY;

		
		public final static String TAGS = "tags";
		public final static String PREFIX__TAGS = prefix + TAGS;

		
		public final static String NAME = "name";
		public final static String PREFIX__NAME = prefix + NAME;

		
		public final static String AGE = "age";
		public final static String PREFIX__AGE = prefix + AGE;

	}
	public static class HDE_ACCOUNT {
	    public final static String NAMESPACE = "hde_account";

		private final static String prefix = NAMESPACE + ".";
			
		
		public final static String USER_ID = "user_id";
		public final static String PREFIX__USER_ID = prefix + USER_ID;

		
		public final static String PAYMENTS = "payments";
		public final static String PREFIX__PAYMENTS = prefix + PAYMENTS;

		
		public final static String SN = "sn";
		public final static String PREFIX__SN = prefix + SN;

		
		public final static String STATUS = "status";
		public final static String PREFIX__STATUS = prefix + STATUS;

	}

}
